#include "Uart.h"


void UartInit(void)		//115200bps@11.0592MHz
{
	SCON = 0x50;		//8???,?????
	AUXR |= 0x40;		//???1???Fosc,?1T
	AUXR &= 0xFE;		//??1?????1???????
	TMOD &= 0x0F;		//?????1?16???????
	TL1 = 0xE8;		//??????
	TH1 = 0xFF;		//??????
	ET1 = 0;		//?????1??
	TR1 = 1;		//?????1
}


void Uart_SendData(unsigned char dat)
{
	SBUF = dat;
	while(!TI);
	TI = 0;
	 
}